//
//  HRTakeAddressTableHeadView.m
//  haierapp
//
//  Created by Xia Zhiyong on 14-8-12.
//  Copyright (c) 2014年 haier. All rights reserved.
//

#import "HRTakeAddressTableHeadView.h"

@implementation HRTakeAddressTableHeadView

- (id)initWithFrame:(CGRect)frame
{
    self = [[[NSBundle mainBundle] loadNibNamed:@"HRTakeAddressTableHeadView"
                                                                    owner:self
                                                                options:nil] objectAtIndex:0];
    return self;
}

-(id)init{
    self = [[[NSBundle mainBundle] loadNibNamed:@"HRTakeAddressTableHeadView"
                                          owner:self
                                        options:nil] objectAtIndex:0];
    return self;

}


- (IBAction)actionBtn:(id)sender {
    UIButton *btn = (UIButton*)sender;
    switch (btn.tag) {
        case 1001:{
            if (!_btnSetNormal.selected) {
                _btnSetNormal.selected = YES;
                _btnClickWithAcition(ACTION_SET_DEFAULT);
            }
            
            
        }
            break;
        case 1002:
            _btnClickWithAcition(ACTION_EDIT);
            break;
        case 1003:
            _btnClickWithAcition(ACTION_DEL);
            break;
        default:
            break;
    }
}
@end
